﻿using System.Collections.Generic;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.Pay.Request
{
    /// <summary>
    /// 解绑银行卡
    /// chenggou.pay.userbankcard.delete
    /// </summary>
    public class DeleteUserBankCardRequest:ITopRequest<IntResultResponse>
    {
        /// <summary>
        /// 银行卡ID
        /// </summary>
        public int BankCardId { get; set; }


        public string GetApiName()
        {
            return "chenggou.pay.userbankcard.delete";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"bankcardid", BankCardId}
            };

            return parameters;
        }

        public void Validate()
        {
            RequestValidator.ValidateRequired("bankcardid", BankCardId);
        }
    }
}
